package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.enums.UnitType;
import lombok.Data;

@Data
public class PtDMLParam {

    private UnitType unit;

    private Object data;

    private String field;

    private String link = "and";

    public PtDMLParam() {
    }

    public PtDMLParam(String field, UnitType unit, Object data) {
        this.unit = unit;
        this.data = data;
        this.field = field;
    }

    public static PtDMLParam getPtDMLParam(String field, UnitType unit, Object data) {
        return new PtDMLParam(field, unit, data);
    }
}
